package com.example.demo.entity;

import org.springframework.stereotype.Component;

@Component
public class Newsinfo {
	private Integer Id;
	private String newsId;
	private String typeId;
	private String userId;
	private String title;
	private String content;
	private String newsImg;
	private String newsTime;
	private Integer scanNum;
	private Integer comNumber;
	public Integer getId() {
		return Id;
	}
	public void setId(Integer id) {
		Id = id;
	}
	public String getNewsId() {
		return newsId;
	}
	public void setNewsId(String newsId) {
		this.newsId = newsId;
	}
	public String getTypeId() {
		return typeId;
	}
	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getNewsImg() {
		return newsImg;
	}
	public void setNewsImg(String newsImg) {
		this.newsImg = newsImg;
	}
	public String getNewsTime() {
		return newsTime;
	}
	public void setNewsTime(String newsTime) {
		this.newsTime = newsTime;
	}
	public Integer getScanNum() {
		return scanNum;
	}
	public void setScanNum(Integer scanNum) {
		this.scanNum = scanNum;
	}
	public Integer getComNumber() {
		return comNumber;
	}
	public void setComNumber(Integer comNumber) {
		this.comNumber = comNumber;
	}
	@Override
	public String toString() {
		return "Newsinfo [Id=" + Id + ", newsId=" + newsId + ", typeId=" + typeId + ", userId=" + userId + ", title="
				+ title + ", content=" + content + ", newsImg=" + newsImg + ", newsTime=" + newsTime + ", scanNum="
				+ scanNum + ", comNumber=" + comNumber + "]";
	}
	
	
}
